package com.wj.abstractfactory.abstractfactory.impl;

import com.wj.abstractfactory.HuMan;
import com.wj.abstractfactory.abstractfactory.HumanFactory;
import com.wj.abstractfactory.human.WhiteHuMan;
import com.wj.abstractfactory.human.YellowHuMan;

/**
 * @author WangJin
 * @version 1.0
 * @date 2022/2/18 10:34
 */
public class ManFactory implements HumanFactory {

    @Override
    public HuMan createYellowHuman() {
        return new YellowHuMan();
    }

    @Override
    public HuMan createWhiteHuman() {
        return new WhiteHuMan();
    }
}
